//
//  Extension+UIImageView.swift
//  LKWeibo
//
//  Created by like on 16/8/10.
//  Copyright © 2016年 like. All rights reserved.
//

import UIKit

extension UIImageView{
    
    //UIImage 的便利构造函数
    
    convenience init(imgName:String){
        self.init(image: UIImage(named: imgName))
    }
    
    // 对SDWebImage 封装一次
    func lk_setImageWithString(imgName: String?,placeholderImgName: String){
        self.sd_setImageWithURL(NSURL(string: imgName ?? ""), placeholderImage: UIImage(named: placeholderImgName))
    }
}


